package com.example.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * (Products)实体类
 *
 * @author makejava
 * @since 2024-03-12 16:52:06
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Products implements Serializable {
    private static final long serialVersionUID = 351948010226456138L;
    
    private Long id;
    
    private String name;
    /**
     * 菜品分类id
     */
    private Integer categoryId;
    /**
     * 价格
     */
    private Double price;
    
    private String image;
    /**
     * 描述
     */
    private String description;
    /**
     * 0停售 1起售 2过期 3库存为0
     */
    private Integer status;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
    
    private Long createUser;
    
    private Long updateUser;
    /**
     * 库存数
     */
    private Integer number;
    /**
     * 生产日期
     */
    private Date produceDate;
    /**
     * 保质期（天数）
     */
    private Integer expirationDate;


}

